//
//  SuperManTableViewCell.m
//  Products_B
//
//  Created by lanou on 16/5/28.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import "SuperManTableViewCell.h"

@implementation SuperManTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.iconImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 50, 50)];
        self.iconImageView.layer.cornerRadius = 25;
        self.iconImageView.layer.masksToBounds = YES;
        
        self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(60, 0, 100, 20)];
        self.nameLabel.font = [UIFont systemFontOfSize:15];
        self.contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(60, 20, kWidth - 80, 30)];
        self.contentLabel.font = [UIFont systemFontOfSize:13];
        self.contentLabel.textColor = [UIColor grayColor];
        self.fanceLabel = [[UILabel alloc]initWithFrame:CGRectMake(60, 50, kWidth - 100, 20)];
        self.fanceLabel.font = [UIFont systemFontOfSize:13];
        self.fanceLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:_iconImageView];
        [self.contentView addSubview:_nameLabel];
        [self.contentView addSubview:_contentLabel];
        [self.contentView addSubview:_fanceLabel];
    }
    return self;
}
@end
